export class ImgResidentQueue{
    constructor(){
        this.container=new Map();
    }

    set(key,element){
        element.key=key;
        this.container.set(key,element);
    }
    get(key){
        return this.container.get(key);
    }

    clear(){
        for(let [,value] of this.container){
            value.destroy();
        }
        this.container.clear();
    }
}